import request from '../utils/request';

// 登录
export function login(data) {
  return request({
    url: '/api/auth/login',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/json',
    },
  });
}

// 退出登录
export function logout() {
  return request({
    url: '/api/auth/logout',
    method: 'post'
  })
}
